<h1>customers</h1>
<p align="right"><a href="<?php echo site_url('people/customer/create_customer');?>">Add customer</a></p>
<!--<div id="infoMessage"><?php echo $message;?></div>-->
<script type="text/javascript">
$(function() {
	     var scntDiv = $('#p_scents');
        var i = $('#p_scents p').size() + 1;
        
        $('#addScnt').live('click', function() {
                $('<tr> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" onblur="add_row();" /></td><td><a href="#" id="remScnt">Remove</a></td></tr>').appendTo(scntDiv);
                i++;
                return false;
        });
        
        $('#remScnt').live('click', function() { 
		alert('ok')
		alert(i)
                if( i > 1 ) {
                        $(this).parents('tr').remove();
                        i--;
                }
                return false;
        });
});

</script>
<!--/*<script>

function add_row(){

    var scntDiv = $('#p_scents');
        var i = $('#p_scents p').size() + 1;
        
        //$('#addScnt').live('click', function() {
                $('<tr> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" /></td> <td><input type="text" class="span8" onblur="add_row();" /></td><td><a href="#" id="remScnt">Remove</a></td></tr>').appendTo(scntDiv);
                i++;
                return false;
       // });
        

        

}

</script>*/-->
<!--<div id="infoMessage"><?php echo $message;?></div>-->
<table align="center">
<tr>
<td>INVOICE NO</td><td><input type="text" class="span8" name="invoice_no"></td>
</tr>
<tr>
<td>DATE</td><td><input type="text" class="span8" name="date"></td>
</tr>
<tr><td>CUSTOMER</td><td><input type="text" class="span8" name="id_customer"></td>
</tr>
<tr><td>TYPE</td><td><input type="radio" name="type" checked="checked">:Cash<br>
<input type="radio" name="type" checked="checked">:Credit
</td>
</tr>
</table>
<hr>
<hr>
<table width="100%" class="table" >

  <tr class="success">
              <td><b>Items</b></td>
              <td><b>Batch</b></td>
              <td><b>Rate</b></td>
              <td><b>Quantity</b></td>
              <td><b>Amount</b></td>
              <td><b>Discount</b></td>
              <td><b>Spl.Disc.</b></td>
              <td><b>Tax(%)</b></td>
              <td><b>Discount</b></td>
              <td><b>Free</b></td>
              <td><b>Item history</b></td>
              <td><b>Options</b></td>
             </tr>
  <tbody id="p_scents">           
  <tr >
    <td><input type="text" class="span8" name='code[]' /></td>
    <td><input type="text" class="span8"  name/></td>
    <td><input type="text" class="span8" /></td>
    <td><input type="text" class="span8" /></td>
    <td><input type="text" class="span8" /></td>
    <td><input type="text" class="span8" /></td>
    <td><input type="text" class="span8" /></td>
    <td><input type="text" class="span8" /></td>
    <td><input type="text" class="span8" /></td>
    <td><input type="text" class="span8" /></td>
    <td><input type="text" class="span8" onblur="add_row();"/></td>
<td><a href="#" id="addScnt">ADD</a></td>
  </tr>
  </tbody>
</table>


<!--<table width="100%">
         <thead>
             <tr>
              <th>Items</th>
              <th>Batch</th>
              <th>Rate</th>
              <th>Quantity</th>
              <th>Amount</th>
              <th>Discount</th>
              <th>Spl.Disc.</th>
              <th>Tax(%)</th>
              <th>Discount</th>
              <th>Free</th>
              <th>Item history</th>
             </tr>
          </thead>
    	<tbody>
        <tr>
        <td> <input type="text" ></td>
<td> <input type="text"></td>
<td> <input type="text" ></td>
<td> <input type="text" ></td>
<td> <input type="text" ></td>
<td> <input type="text" ></td>
<td> <input type="text" ></td>
<td> <input type="text" ></td>
<td> <input type="text" ></td>
<td> <input type="text" ></td>        
        </tr>
        
        </tbody>       
	

</table>-->